package com.ics.atable.chat.model.vo.node.stream;

import com.ics.atable.chat.model.enums.ResponseTypeEnum;
import lombok.Data;

/**
 * 字符串流响应
 *
 * @author haohongbin
 */
@Data
public class StringStreamResponse implements StreamResponse {
    private String data;

    public StringStreamResponse(String data) {
        this.data = data;
    }

    @Override
    public ResponseTypeEnum getType() {
        return ResponseTypeEnum.STRING;
    }

    @Override
    public Object getData() {
        return data;
    }

    // getter and setter
    public String getDataValue() {
        return data;
    }
}
